Skip to content

Regex warnings at runtime #48

@ghiculescu

Description

@ghiculescu

These warnings are reported at runtime, when running tests:

lib/activerecord-clean-db-structure/clean_dump.rb:39: warning: character class has duplicated range: /^-- (.*); Schema: ([\w_\.]+|-); Owner: -.*/
lib/activerecord-clean-db-structure/clean_dump.rb:50: warning: character class has duplicated range
lib/activerecord-clean-db-structure/clean_dump.rb:51: warning: character class has duplicated range
lib/activerecord-clean-db-structure/clean_dump.rb:62: warning: character class has duplicated range
lib/activerecord-clean-db-structure/clean_dump.rb:79: warning: character class has duplicated range: /ALTER TABLE ONLY [\w_\.]+ ATTACH PARTITION
lib/activerecord-clean-db-structure/clean_dump.rb:83: warning: character class has duplicated range
lib/activerecord-clean-db-structure/clean_dump.rb:107: warning: character class has duplicated range: /CREATE INDEX ([\w_]+) ON ONLY/

I'm pretty dumb with regexes so don't know if they're valid warnings or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions