-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: parse template code & update maxRow of TextAreaSetter (#192)
* fix: update templatePattern regex to allow for multiline code wrapping * fix: update error overlay display to use designer.activeView instead of mode * fix: update maxRows to 6 in TextAreaSetter
- Loading branch information
Showing
5 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { isWrappedCode } from '../src/helpers'; | ||
|
||
describe('helpers/codeHelper', () => { | ||
it('isWrappedCode', () => { | ||
expect(isWrappedCode('{{[]}}')).toBeTruthy(); // true | ||
expect(isWrappedCode('{{{}}}')).toBeTruthy(); // true | ||
expect(isWrappedCode('{{this.foo}}')).toBeTruthy(); // true | ||
expect(isWrappedCode('{{123}}')).toBeTruthy(); // true | ||
expect(isWrappedCode('{{() => {}}}')).toBeTruthy(); // true | ||
expect(isWrappedCode('{{<Button>button</Button>}}')).toBeTruthy(); // true | ||
expect(isWrappedCode('{{<>\n<Button>hello</Button>\n</>}}')).toBeTruthy(); // true | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters