Skip to content

Commit b3bcaa2

Browse files
committed
DEV: apply prettier to wizard composer editor
1 parent d6b4954 commit b3bcaa2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

assets/javascripts/discourse/components/custom-wizard-composer-editor.js.es6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ import Site from "discourse/models/site";
1313
import { uploadIcon } from "discourse/lib/uploads";
1414
import { dasherize } from "@ember/string";
1515

16-
const IMAGE_MARKDOWN_REGEX =
17-
/!\[(.*?)\|(\d{1,4}x\d{1,4})(,\s*\d{1,3}%)?(.*?)\]\((upload:\/\/.*?)\)(?!(.*`))/g;
16+
const IMAGE_MARKDOWN_REGEX = /!\[(.*?)\|(\d{1,4}x\d{1,4})(,\s*\d{1,3}%)?(.*?)\]\((upload:\/\/.*?)\)(?!(.*`))/g;
1817

1918
export default ComposerEditor.extend({
2019
classNameBindings: ["fieldClass"],
@@ -133,8 +132,9 @@ export default ComposerEditor.extend({
133132
event.target.closest(".button-wrapper").dataset.imageIndex,
134133
10
135134
);
136-
const matchingPlaceholder =
137-
this.get("composer.reply").match(IMAGE_MARKDOWN_REGEX);
135+
const matchingPlaceholder = this.get("composer.reply").match(
136+
IMAGE_MARKDOWN_REGEX
137+
);
138138

139139
this.session.set("wizardEventFieldId", this.field.id);
140140
this.appEvents.trigger(

0 commit comments

Comments
 (0)