Skip to content

Commit

Permalink
fix: parsing properties
Browse files Browse the repository at this point in the history
  • Loading branch information
stdword committed Mar 22, 2023
1 parent ab1eccb commit ccaee78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/logseq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ export class PropertiesUtils {
static readonly templateProperty = 'template'
static readonly includingParentProperty = 'template-including-parent'

static propertyContentFormat = f`^[^\S\n]*${'name'}::.*$\n?`
static propertyRestrictedChars = ':;,^@#~"`/|\\(){}[\\]'
static propertyContentFormat = f`\n?^[^\\S]*${'name'}::.*$`
static propertyRestrictedChars = '\\s:;,^@#~"`/|\\(){}[\\]'

static toCamelCase(text: string): string {
text = text.toLowerCase()
Expand Down

0 comments on commit ccaee78

Please sign in to comment.