diff options
Diffstat (limited to 'src/data')
-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; |