Skip to content

Commit

Permalink
Format as a proper function
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Jul 11, 2018
1 parent 4ccde94 commit 1bf5ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shortcode/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function string( options ) {
*
* @return {RegExp} Shortcode RegExp.
*/
export const regexp = ( tag ) => {
export function regexp( tag ) {
return new RegExp( '\\[(\\[?)(' + tag + ')(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)', 'g' );
};

Expand Down

0 comments on commit 1bf5ba0

Please sign in to comment.