module Todo
  class Task
    def initialize(task)
      @orig = task.chomp
    end

    # The regex used to match priorities.
    # todo.txt only uses a-z but I wanted numbers.
    def self.priotity_regex
      /^\([A-Za-z0-9]\)\s+/
    end
  end
end

module Todo
  class Task
    def initialize(task)
      @orig = task.chomp
    end
  end
end

--- 
+++ 
@@ -3,5 +3,11 @@
     def initialize(task)
       @orig = task.chomp
     end
+
+    # The regex used to match priorities.
+    # todo.txt only uses a-z but I wanted numbers.
+    def self.priotity_regex
+      /^\([A-Za-z0-9]\)\s+/
+    end
   end
 end
Change the priority regex to allow numbers.
