1
0

feat: editor script setup

This commit is contained in:
Dominik Pschenitschni
2022-10-03 12:18:20 +02:00
parent cbec1f24aa
commit db627ed28a
7 changed files with 289 additions and 279 deletions

View File

@ -285,7 +285,7 @@ const getDateFromWeekday = (text: string): dateFoundResult => {
// matched string comes with a space at the end (last part of the regex).
let foundText = results[0]
if (foundText.endsWith(' ')) {
foundText = foundText.substr(0, foundText.length - 1)
foundText = foundText.slice(0, foundText.length - 1)
}
return {