Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

fixed pattern for whitespace #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fixed pattern for whitespace #12

wants to merge 1 commit into from

Conversation

apla
Copy link

@apla apla commented Apr 28, 2014

No description provided.

@@ -13,8 +13,8 @@ define(function (require, exports, module) {
NGUtils = require("NGUtils");

var patterns = {
directive: /\.directive\(['"]([a-zA-Z-]+)['"]/g,
controller: /\.controller\(['"](\w+)['"]/g
directive: /\.directive[ \n\r\t]*\([ \n\r\t]*['"]([a-zA-Z-]+)['"]/g,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use \s?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because \s is not matching this declaration:

        Demo.controller(
            "DemoController",
            function( $scope ) {

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants