mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
<!-- Before making a PR please make sure to read our contributing guidelines https://github.com/babel/babel/blob/master/CONTRIBUTING.md For issue references: Add a comma-separated list of a [closing word](https://help.github.com/articles/closing-issues-via-commit-messages/) followed by the ticket number fixed by the PR. It should be underlined in the preview if done correctly. --> | Q | A <!--(Can use an emoji 👍) --> | ------------------------ | --- | Fixed Issues? | -- | Patch: Bug Fix? | | Major: Breaking Change? | | Minor: New Feature? | | Tests Added + Pass? | Yes | Documentation PR | <!-- If so, add `[skip ci]` to your commit message to skip CI --> | Any Dependency Changes? | | License | MIT Good ol' plugin ordering 🙃 Ref: https://github.com/babel/babel/pull/7065#issuecomment-395959112
10 lines
321 B
JavaScript
10 lines
321 B
JavaScript
const input = `
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing hello
|
|
world elit. Nam sit amet elit id risus aliquam porta.
|
|
`;
|
|
|
|
expect(/hello.world/.test(input)).toBe(false);
|
|
expect(/hello.world/u.test(input)).toBe(false);
|
|
expect(/hello.world/s.test(input)).toBe(true);
|
|
expect(/hello.world/su.test(input)).toBe(true);
|