diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-01-06 13:21:18 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-01-06 13:21:47 -0400 |
commit | ce2eb1e09acdd5adb8a35485ccf635a73b84e5b9 (patch) | |
tree | bfd1331007684d6a025e0af99da92721eab347c1 /src/data/things | |
parent | 5b4510abf439f263ceccea729e9f45af146758da (diff) |
validators, test: don't include line break in surroundings
Diffstat (limited to 'src/data/things')
-rw-r--r-- | src/data/things/validators.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/things/validators.js b/src/data/things/validators.js index b462be47..f9910364 100644 --- a/src/data/things/validators.js +++ b/src/data/things/validators.js @@ -447,10 +447,10 @@ const illegalCharactersInContent = .join(''); const legalContentNearEndRegexp = - new RegExp(`[^${illegalCharactersInContent}]+$`); + new RegExp(`[^\n${illegalCharactersInContent}]+$`); const legalContentNearStartRegexp = - new RegExp(`^[^${illegalCharactersInContent}]+`); + new RegExp(`^[^\n${illegalCharactersInContent}]+`); const trimWhitespaceNearBothSidesRegexp = /^ +| +$/gm; |