Merge branch 'develop' into develop

This commit is contained in:
Julian Molina authored and GitHub committed 2021-01-14 10:45:18 +01:00
commit 28595ec321
2 files changed
+18 -16

No files matched your search

+17 -14
View File
@@ -601,13 +601,18 @@ function newSuperalgosUtilitiesDocs() {
const MAX_NUMBER_OF_WORDS = 10
text = text.trim()
let cleanText = text.replace(/'/g, ' AMPERSAND ') // scaping ampersands, separating them from other words
.replaceAll('<', ' < ')
.replaceAll('>', ' > ')
.replaceAll(':', ' : ')
.replaceAll(',', ' , ')
.replaceAll('.', ' . ')
.replaceAll('!', ' ! ')
let words = cleanText.split(' ')
.replaceAll(':', ' :')
.replaceAll(',', ' ,')
.replaceAll('.', ' .')
.replaceAll('!', ' !')
let allWords = cleanText.split(' ')
let words = []
for (let i = 0; i < allWords.length; i++) {
let word = allWords[i]
if (word !== "") {
words.push(word)
}
}
let taggedText = ''
for (let i = 0; i < words.length; i++) {
@@ -617,7 +622,7 @@ function newSuperalgosUtilitiesDocs() {
for (let j = 0; j < MAX_NUMBER_OF_WORDS; j++) {
let word = words[i + j]
if (word === "" ) { word = " "}
if (word === "") { word = " " }
if (word !== undefined) {
if (phrase === '') {
phrase = word
@@ -666,12 +671,10 @@ function newSuperalgosUtilitiesDocs() {
}
}
taggedText = taggedText.replaceAll(' AMPERSAND ', '\'')
.replaceAll(' < ', '<')
.replaceAll(' > ', '>')
.replaceAll(' : ', ':')
.replaceAll(' . ', '.')
.replaceAll(' , ', ',')
.replaceAll(' ! ', '!')
.replaceAll(' :', ':')
.replaceAll(' .', '.')
.replaceAll(' ,', ',')
.replaceAll(' !', '!')
.replaceAll(' ', ' ')
return taggedText
}
+1 -2
View File
@@ -4,5 +4,4 @@
[0113/181816.824:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[0113/184940.841:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[0113/191144.811:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[0113/211951.038:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[0114/091941.392:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)