Use the following regex to search for the usage of a class in some HTML. Replace
button
as needed.
class\="(?:[A-Za-z\-\s]+ )?button(?: [A-Za-z\-\s]+)?"
<!-- Update html tag to include the itemscope and itemtype attributes for Article-ish items --> | |
<html itemscope itemtype="http://schema.org/Article"> | |
<!-- In the Head Tag --> | |
<meta name="description" content="Page description. No longer than 155 characters." /> | |
<!-- Schema.org markup for Google, Facebook, General Sharing --> | |
<meta itemprop="name" content="The Name or Title Here"> | |
<meta itemprop="description" content="This is the page description"> | |
<meta itemprop="image" content="http://www.example.com/image.jpg"> |
class Lockdown | |
def initialize(app) | |
@app = app | |
end | |
def call(env) | |
request = Rack::Request.new(env) | |
if request.path != '/' | |
auth = Rack::Auth::Basic::Request.new(env) |
Use the following regex to search for the usage of a class in some HTML. Replace
button
as needed.
class\="(?:[A-Za-z\-\s]+ )?button(?: [A-Za-z\-\s]+)?"
I hereby claim:
To claim this, I am signing this object: